cmake_minimum_required(VERSION 3.5)

project(x11spice LANGUAGES C)

find_package(PkgConfig)

pkg_check_modules(SPICE_PROTOCOL IMPORTED_TARGET spice-protocol)
pkg_check_modules(SPICE_SERVER IMPORTED_TARGET spice-server)
pkg_check_modules(PIXMAN IMPORTED_TARGET pixman-1)
pkg_check_modules(XCB IMPORTED_TARGET xcb)
pkg_check_modules(XCB_SHM IMPORTED_TARGET xcb-shm)
pkg_check_modules(XCB_DAMAGE IMPORTED_TARGET xcb-damage)
pkg_check_modules(XCB_XFIXES IMPORTED_TARGET xcb-xfixes)
pkg_check_modules(XCB_XKB IMPORTED_TARGET xcb-xkb)
pkg_check_modules(XCB_XTEST IMPORTED_TARGET xcb-xtest)
pkg_check_modules(GTK3 IMPORTED_TARGET gtk+-3.0)

#find_package(GTK)

add_subdirectory(src)

